package com.buba.service.impl;

import com.buba.dao.BranchMapper;
import com.buba.pojo.Branch;
import com.buba.pojo.Message;
import com.buba.pojo.Role;
import com.buba.service.BranchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BranchServiceImpl implements BranchService {

    @Autowired
    private BranchMapper branchMapper;

    @Override
    public List<Branch> bran() {
        return branchMapper.bran();
    }

    @Override
    public int dell(String branchId) {
        return branchMapper.dell(branchId);
    }

    @Override
    public int ins(Map<String, Object> map) {
        return branchMapper.ins(map);
    }

    @Override
    public int edit(Map<String, Object> map) {
        return branchMapper.edit(map);
    }



}
